#app {
  //start 自己单独处理的
  .el-menu-item,
  .el-submenu__title {
    height: 45px;
    line-height: 45px;
  }
  .el-submenu__icon-arrow {
    font-weight: 600;
  }
  .el-menu-item {
    padding-left: 10px !important;
  }
  .el-dropdown-menu__item,
  .el-menu-item {
    padding: 0 10px;
  }
  .el-menu-item.submenu-title-noDropdown {
    padding: 0 10px;
  }
  .el-menu-item.is-active.submenu-title-noDropdown,
  .el-menu-item.is-active {
    background: $base-menu-background-active;
    color: $base-menu-color-active;
    border-radius: 4px;
    padding: 0 10px;
  }
  //end 自己单独处理的
  .main-container {
    height: 100%;
    transition: margin-left 0.28s;
    position: relative;
  }

  .sidebarHide {
    margin-left: 0 !important;
  }

  .sidebar-container {
    position: relative;
    -webkit-transition: width 0.28s;
    transition: width 0.28s;
    width: $sideBarWidth !important;
    background-color: $base-menu-background;
    position: fixed;
    top: 0;
    bottom: $footerHeight;
    left: 0;
    z-index: 1001;
    overflow: hidden;
    background: $base-menu-background !important;

    // reset element-ui css
    .horizontal-collapse-transition {
      transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out;
    }

    .scrollbar-wrapper {
      overflow-x: hidden !important;
    }

    .el-scrollbar__bar.is-vertical {
      right: 0px;
    }

    .el-scrollbar {
      height: 100%;
    }

    &.has-logo {
      .el-scrollbar {
        height: calc(100vh - #{$navHeight} - #{$footerHeight});
      }
    }

    .is-horizontal {
      display: none;
    }

    a {
      display: inline-block;
      width: 100%;
      overflow: hidden;
    }

    .svg-icon {
      margin-right: 10px;
    }

    .el-menu {
      border: none;
      height: 100%;
      width: calc(100% - 20px) !important;
      margin: 0 10px;
    }

    .el-menu-item,
    .el-submenu__title {
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      white-space: nowrap !important;
      color: $base-menu-color;
      padding: 0 10px !important;
      border-radius: 4px;
      i {
        color: $base-menu-color;
      }
    }

    // menu hover
    .el-menu-item:hover {
      background: rgba($color: #fff, $alpha: 0.1);
    }
    .el-menu-item:focus {
      background: $base-menu-background-active;
    }
    .submenu-title-noDropdown:hover {
    }
    .el-submenu__title:hover {
      background: none;
      color: $base-menu-color-active;
    }

    & .theme-dark .is-active > .el-submenu__title {
      color: $base-menu-color-active !important;
    }
    & .nest-menu {
      margin: 0px -10px;
    }
    & .nest-menu .el-submenu > .el-submenu__title,
    & .el-submenu .el-menu-item {
      min-width: $base-sidebar-width !important;

      &:hover {
        // background-color: rgba(0, 0, 0, 0.06) !important;
      }
    }

    & .theme-dark .nest-menu .el-submenu > .el-submenu__title,
    & .theme-dark .el-submenu .el-menu-item {
      padding: 0 40px !important;

      &:hover {
        // background-color: $base-sub-menu-hover !important;
      }
    }
  }
  .closeSidebar {
    .sub-el-icon {
      margin: 0 9px;
    }
    .el-submenu__icon-arrow {
      display: none;
    }
    .gt-menu-list {
      width: 40px;
      margin-left: 8px;
    }
    .hamburger-container {
      left: 0px;
    }
    .sidebar-container {
      width: 54px !important;
    }
    .app-main {
      padding-left: 54px;
    }
    .main-container {
    }
    .submenu-title-noDropdown {
      // padding: 0 !important;
      position: relative;
      .sub-el-icon {
        margin: 0 9px;
      }
      .el-tooltip {
        padding: 0 !important;

        .svg-icon {
          margin-left: 20px;
        }
      }
    }
    .el-submenu {
      overflow: hidden;

      & > .el-submenu__title {
        padding: 0 !important;

        .svg-icon {
          margin-left: 20px;
        }
      }
    }

    .el-menu--collapse {
      .el-submenu {
        & > .el-submenu__title {
          & > span {
            height: 0;
            width: 0;
            overflow: hidden;
            visibility: hidden;
            display: inline-block;
          }
        }
      }
    }
  }
  .hideSidebar {
    .sidebar-container {
      width: 54px !important;
    }
    .main-container {
    }
    .submenu-title-noDropdown {
      // padding: 0 !important;
      position: relative;
      .el-tooltip {
        padding: 0 !important;

        .svg-icon {
          margin-left: 20px;
        }
      }
    }

    .el-submenu {
      overflow: hidden;
      & > .el-submenu__title {
        padding: 0 !important;

        .svg-icon {
          margin-left: 20px;
        }
      }
    }

    .el-menu--collapse {
      .el-submenu {
        & > .el-submenu__title {
          & > span {
            height: 0;
            width: 0;
            overflow: hidden;
            visibility: hidden;
            display: inline-block;
          }
        }
      }
    }
  }

  .el-menu--collapse .el-menu .el-submenu {
    min-width: $base-sidebar-width !important;
  }

  // 针对系统设置和个人中心设置样式
  .el-menu--collapse .setting-content .el-tooltip {
    padding: 0 10px !important;
  }
  .el-menu--collapse .setting-user .el-tooltip {
    padding: 0 8px !important;
  }

  // mobile responsive
  .mobile {
    .main-container {
      margin-left: 0px;
    }

    .sidebar-container {
      transition: transform 0.28s;
      width: $base-sidebar-width !important;
    }

    &.hideSidebar {
      .sidebar-container {
        pointer-events: none;
        transition-duration: 0.3s;
        transform: translate3d(-$base-sidebar-width, 0, 0);
      }
    }
  }

  .withoutAnimation {
    .main-container,
    .sidebar-container {
      transition: none;
    }
  }
}

// when menu collapsed
.el-menu--vertical {
  & > .el-menu {
    .svg-icon {
      margin-right: 16px;
    }
  }

  .nest-menu .el-submenu > .el-submenu__title,
  .el-menu-item {
    color: #fff;
    background-color: $base-menu-background !important;
    // color: #333;
    &:hover {
      color: #fff;
      // you can use $subMenuHover
      background-color: $base-menu-background-active !important;
    }
  }

  // the scroll bar appears when the subMenu is too long
  > .el-menu--popup {
    max-height: 100vh;
    overflow-y: auto;

    &::-webkit-scrollbar-track-piece {
      background: #fff;
    }

    &::-webkit-scrollbar {
      width: 6px;
    }

    &::-webkit-scrollbar-thumb {
      background: #ffff;
      border-radius: 20px;
    }
  }
}
